package org.csu.spring.demo.aop.test;

import org.csu.spring.demo.aop.persistence.AccountDAO;
import org.csu.spring.demo.aop.persistence.AccountDAOImpl;
import org.csu.spring.demo.aop.proxy.ProxyDemo;
import org.csu.spring.demo.ioc.domain.Account;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;
import java.lang.reflect.Proxy;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext-aop.xml")
public class Demo {

    @Autowired
    private AccountDAO accountDAO;


    @Test
    public void test(){
        accountDAO.insert();

    }
}
